$def with (content)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	$ website_title = globals.get('website_title')
    <title>$(content.get('title') == None and website_title or content.title + ' | ' + website_title)</title>
    <link rel="stylesheet" href="/static/css/style.css" />
    $if content.get('css_files'):
    	$:css(content.get('css_files'))
    $:javascript(['swallow'])
</head>
<body>
	<div id="wrap">
		<div id="header">
			<span id="logo"></span>
			<div id="website_title"><a href="/">$globals.get('website_title')</a></div>
			<div id="menu">
				<ul>
					<li><a href="/">首页</a></li>
					<li><a href="/posts">文章</a></li>
					<li><a href="/about">关于</a></li>
				</ul>
				$if session.get('loggedin'):
					<ul id="menu-right">
							<li><a href="/settings">管理</a></li>
							<li><a href="/logout">注销</a></li>
					</ul>	
				<a class="feed" href="/feed" target="_blank"><i class="icon-feed"></i></a>
				<!-- <form class="inline-form" action="/search" method="post">
					<input type="text" name="keyword" placeholder="搜索"/>
				</form> -->
			</div>
		</div>
		<div  class="wrapper">
			<div id="main">
				$:content
			</div>
		</div>
		<div id="footer">
			Power By <a href="http://git.oschina.net/carlos/swallow"><strong>Swallow</strong></a>
		</div>
	</div>

    $if content.get('js_files'):
    	$:javascript(content.get('js_files'))
    $:globals.get('statistic_code')
</body>
</html>
